package cc.rengu.redp.bizimpl.upmp.service;

import cc.rengu.redp.bizimpl.upmp.domain.ManagerInfo;
import cc.rengu.redp.bizimpl.upmp.vo.OperationResult;
import cc.rengu.redp.common.domain.QueryRequest;
import cc.rengu.redp.common.exception.RedpException;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
* @author 刘玉亮.LL
*/
    public interface IManagerInfoService extends IService<ManagerInfo> {

    IPage<ManagerInfo> findByPage(QueryRequest request, ManagerInfo info);

    List<ManagerInfo> findManagerInfoByManagerId(String managerId);

    List<ManagerInfo> findManagerInfoByManagerPhone(String managerPhone, String instId);

    List<ManagerInfo> getManagerInfoBySignInstId(String signinstid, String instId);

    OperationResult saveData(String oprMenuId, String oprMenuName, ManagerInfo entity, HttpServletRequest request, String webNextUrl) throws RedpException;

    //从Excel读取对象
    List<ManagerInfo> getManagerInfoFromXls(String filePath, int maxRecords, Map<String, String> result) throws IOException, RedpException;

    //批量验证保存
    Map<String,String> batchSave(String oprMenuId, String oprMenuName, List<ManagerInfo> list, HttpServletRequest request, String webNextUrl) throws RedpException;

    List<Map> exportList(HttpServletRequest request);
}
